import request from '@/utils/request'

// 查询短信记录授权列表
export function listApplySms(query) {
    return request({
        url: '/business/ApplySms/list',
        method: 'get',
        params: query
    })
}

// 查询短信记录授权详细
export function getApplySms(id) {
    return request({
        url: '/business/ApplySms/' + id,
        method: 'get'
    })
}

// 新增短信记录授权
export function addApplySms(data) {
    return request({
        url: '/business/ApplySms',
        method: 'post',
        data: data
    })
}

// 修改短信记录授权
export function updateApplySms(data) {
    return request({
        url: '/business/ApplySms',
        method: 'put',
        data: data
    })
}

// 删除短信记录授权
export function delApplySms(id) {
    return request({
        url: '/business/ApplySms/' + id,
        method: 'delete'
    })
}

// 导出短信记录授权
export function exportApplySms(query) {
    return request({
        url: '/business/ApplySms/export',
        method: 'get',
        params: query
    })
}